package com.cwl.pattern.命令模式;

/**
 * @program: pattern
 * @description: 具体的命令
 * @author: ChenWenLong
 * @create: 2019-07-04 16:03
 **/
public class ConcreteCommand implements Command {

    //接收者
    private Receiver receiver;
    ConcreteCommand() {
        receiver=new Receiver();
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
